//
//  YTTDetail.m
//  跑圈儿
//
//  Created by dllo on 16/4/28.
//  Copyright © 2016年 唐康. All rights reserved.
//

#import "YTTDetail.h"

@implementation YTTDetail

+ (YTTDetail *)pareseDailyJosn:(NSDictionary *)dic
{
    return [[self alloc] pareseDailyJosn:dic];
}

- (YTTDetail *)pareseDailyJosn:(NSDictionary *)dic{
    
    self.data = dic[@"date"];
    self.max = [NSString stringWithFormat:@"%@˚", dic[@"tmp"][@"max"]];
    self.min = [NSString stringWithFormat:@"%@˚", dic[@"tmp"][@"min"]];
    self.iconUrl = [NSString stringWithFormat:@"http://files.heweather.com/cond_icon/%@.png",dic[@"cond"][@"code_d"]];
    return self;
}






@end
